package com.ymy.spring.cloud.sentinel.core.degrade;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import org.springframework.stereotype.Component;

/**
 * @author Ringo
 * @date 2021/10/5 19:08
 */
@Component
public class BlockExceptionHandler {

    public static String getUser(String id, BlockException ex) {
        return "被限流了 cause:";
    }
}
